package designpattern.proxy.findGirlFriend;

import designpattern.proxy.findGirlFriend.dynamic.*;

/**
 * Created with IntelliJ IDEA.
 *
 * @Author: 刘牌
 * @Date: 2021/12/17/10:53
 * @Description:
 */
public class Test {
    public static void main(String[] args) {
//        MikeyProxyTeacher mikeyProxyTeacher = new MikeyProxyTeacher();
//        IPeople instance = mikeyProxyTeacher.getPeopleInstance(new Tlgen());
//        instance.findGirlFriend();

        MikeyCglibProxyTeacher mikeyCglibProxyTeacher = new MikeyCglibProxyTeacher();
        JiaCong proxy = (JiaCong) mikeyCglibProxyTeacher.getProxy(JiaCong.class);
        proxy.findGirlFriend();
    }
}
